<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:c="http://java.sun.com/jsp/jstl/core">
    <f:view contentType="text/html" >
        <h:head>
            <title>WAIR Systems</title>
        </h:head>
        <h:body style=" background:url(./imagens/banner_bg_yellow_menor.gif) repeat-x right top;">
            <p:layout style="width:350px; min-height:150px; margin: 200px 0px 0px 500px" id="layout" >
                <p:layoutUnit position="center">  
                    <h:form id="mainForm">
                        <p:growl id="growl" showDetail="true" sticky="true" />
                        <h:panelGrid columns="2" style="margin: 25px 10px 10px 15px">
                            <h:outputLabel value="Login:"/>
                            <h:inputText value="#{loginViewBean.strLogin}"/>
                            <h:outputLabel value="Senha:"/>
                            <h:inputSecret value="#{loginViewBean.strSenha}"/>
                            <h:outputText value=""/>
                            <h:panelGrid columns="2">
                                <p:commandButton value="Entrar" action="#{loginViewBean.login}" update="growl"/>
                                <p:commandButton value="Apagar" action="#{loginViewBean.apagar}"/>
                            </h:panelGrid>
                        </h:panelGrid>
                    </h:form>
                </p:layoutUnit>
            </p:layout>
        </h:body>
    </f:view>
</html>

